<?php 
if($_SESSION['user_id']=="")
{
	echo '<script>location.href=\'index.php?page=login\'</script>';
	exit;
}
/**********************POST JOBS STARTS HERE*******************************************************/
if($_GET['view']=='post_job_now')
{
$sql ="insert into job_post(zone_id,cat_id,sub_cat_id,job_nature,job_desc,Search_Results,Search_Summary,company_name,work_type,salary,salary_type,currency,email,post_date,created_datetime) values(
       '".$_SESSION['location']."'
	  ,'".$_SESSION['Category']."'																	
	 ,'".$_SESSION['subcat']."'
	 ,'".$_SESSION['title']."'
	 ,'".$_SESSION['desc']."'
	 ,'".$_SESSION['searchtittle']."'
	 ,'".$_SESSION['summary']."'
	 ,'".$_SESSION['cname']."'
	 ,'".$_SESSION['worktype']."'
	 ,'".$_SESSION['salary']."'
	 ,'".$_SESSION['saltype']."'
	 ,'".$_SESSION['currency']."' 
     ,'".$_SESSION['email']."'
	 ,'".$_SESSION['cdate']."'
	 ,'".gmdate('Y-m-d H:i:s')."')";																																																											 
	mysql_query($sql);
	if(mysql_affected_rows())
	{
		echo '<script>location.href=\'index.php?page=logon&_err=0\'</script>';
unset($_SESSION['title']);
unset($_SESSION['desc']);
unset($_SESSION['searchtittle']);
unset($_SESSION['summary']);
unset($_SESSION['cdate']);
unset($_SESSION['email']);
unset($_SESSION['cname']);
unset($_SESSION['Category']);
unset($_SESSION['subcat']);
unset($_SESSION['currency']);
unset($_SESSION['location']);
unset($_SESSION['worktype']);
unset($_SESSION['salary']);
unset($_SESSION['saltype']);
	}
	
}
/**********************POST JOBS ENDS HERE*******************************************************/

/**********************APPLY JOBS STARTS HERE*******************************************************/

/**********************APPLY JOBS ENDS HERE*******************************************************/
	
?>

<link rel="stylesheet" href="css/innerpage.css" type="text/css" />
<div class="mainWarpArea">
    <!-- Begin contentwarp -->
    <div class="contentwarp">
      <div id="register" style="background-color:#FFF;float:left;width:740px;">
        <!-- Begin ContentBox -->
     

<form name="jobpost" method="post">
  <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
    <tbody><tr>
      <td valign="middle" align="center">
      <?php 
	  if($_GET['_err']!="")
{
	echo $msg= '<div class="sucmsg"><img src="images/information.png" align="absmiddle" />&nbsp;Job Posted Successfully</div>';
}
if($_GET['product']==1)
{
	echo $msg= '<div class="sucmsglong"><img src="images/information.png" align="absmiddle" />&nbsp;Product has been Posted Successfully check your Mail for activate The product </div>';
}
if($_GET['_book']==1)
{
	echo $msg= '<div class="sucmsg"><img src="images/information.png" align="absmiddle" />&nbsp;Book has been Posted Successfully </div>';
}
if($_GET['product']==2)
{
	$sql="update gadget_technology set active_status='1' where user_id='".$_SESSION['user_id']."' 
	and gadget='".$_GET['product_id']."'";
	
	mysql_query($sql);
	echo $msg= '<div class="sucmsg"><img src="images/information.png" align="absmiddle" />&nbsp;Product has been activatd </div>';
}

if($_GET['rate_univ']==1)
{
	echo $msg= '<div class="sucmsg"><img src="images/information.png" align="absmiddle" />&nbsp;You Can\'t  Post one more vote for Same University </div>';
}
if($_GET['rate_univ']==2)
{
	echo $msg= '<div class="sucmsglong"><img src="images/information.png" align="absmiddle" />&nbsp;Vote Has been Posted Successfully check your Mail for Confirm your Ratting </div>';
}
if($_GET['rate_univ']==3)
{
	$qry = "select max(vote) vote from ratting"; 
	$res = mysql_query($qry);
	$data = mysql_fetch_array($res);
	
	$count= $data['vote'];
	$count=$count + 1;
	
	 $sql="update ratting set active_status='1'  where user_id='".$_SESSION['user_id']."' 
	and search_id='".$_GET['vote_id']."'";	
	mysql_query($sql);
	echo $msg= '<div class="sucmsg"><img src="images/information.png" align="absmiddle" />&nbsp;Vote Has been Posted Successfully  </div>';
}
  
	  ?>
      
      </td>
    </tr>
 
    <tr>
      <td valign="middle" align="center">
      
      </td>
    </tr>
    <tr>
      <td valign="middle" align="left">&nbsp;</td>
    </tr>
  </tbody></table>
       
</form>
      </div>      
      
      <?php include("includes/right_content.php");?>
      
      
      
      <!-- End contentwarp -->
      <div style="clear:both;"></div>
    </div>
    <!-- End mainWarpArea -->
  </div>
  
  
